/***************************************************
  Set the amount to move the player limited by max velocity mx, my
  argument 0 = x vel
  argument 1 = y vel
  argument 2 = over ride max velocity (for bouncing off bouncers)
 ***************************************************/

self.dx = self.dx + argument0;
self.dy = self.dy + argument1;

if (!argument2) // if not overide then apply damping
{
    if (self.dx > self.mx) 
    {
        self.dx = self.mx;
    }
    
    if (self.dx < -self.mx) 
    {
       self.dx = -self.mx;
    }
    
    if (self.dy > self.my)
    {
        self.dy = self.my;
    } 
    
    if (self.dy < -self.my)
    {
        self.dy = -self.my;
    }   
}
